import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import pinia from '@/store/pinia.ts'
import auth from '@/directives/auth'

let app=createApp(App)
app.directive('auth', auth)
app.use(router)
app.use(ElementPlus)
for(const[key,component] of Object.entries(ElementPlusIconsVue)){
    app.component(key,component)
}
app.use(pinia)
app.mount('#app')
